package recordsDatabase;

import java.io.Serializable;
import java.util.ArrayList;

public class Record implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6927879806427694476L;
	private String field;
	// create the list
	private ArrayList<CategoryDetails> categoryDetailsList= new ArrayList<CategoryDetails>();
	
	public Record(String value, CategoryDetails categoryDetails){
		this.field=value;
		this.categoryDetailsList.add(categoryDetails);
	}
	
	public Record(String value, ArrayList<CategoryDetails> list){
		this.field=value;
		for (CategoryDetails cd:list){
			this.categoryDetailsList.add(cd);
		}
		
	}
	
	public String getRecordName(){
		return field;
	}
	
	public ArrayList<CategoryDetails> getCategoryDetailsList(){
		return categoryDetailsList;
	}


}
